package com.zoe.onelink.actuate.property;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * <p>标题: </p>
 * <p>描述: </p>
 * <p>版权: Copyright (c) 2022</p>
 * <p>公司: 智业软件股份有限公司</p>
 *
 * @version: 1.0
 * @author: ruansheng
 * @date: 2022-04-20
 */
@Data
@ConfigurationProperties(prefix = OnelinkActuatorProperties.PREFIX)
public class OnelinkActuatorProperties {

    public static final String PREFIX = "onelink.actuator";

    /**
     * 优雅停机优先注销Nacos实例后等待N毫秒后再触发原生优雅停机策略
     */
    private int gracefulShutdownNacosCloseWaitMillis = 5_000;

    private FeignProp feign = new FeignProp();


    @Data
    public static class FeignProp {

        /**
         * 展示FeignClient信息
         */
        private boolean showClientInfo = false;

    }

}
